package models

import "gin-app/app/common"

//负责人管理
//水源负责人:序号，姓名，性别，电话号码，管理地区，出库记录
//零售部负责人:序号，姓名，性别，电话号码，售卖地区，售卖记录

// 水源负责人
type WaterSourcePersonInCharge struct {
	common.ID
	Name   string `json:"name" gorm:"size:100;comment:姓名"`
	Gender string `json:"gender " gorm:"size:100;comment:性别"`
	Phone  string `json:"phone" gorm:"size:100;comment:电话号码"`
	Area   string `json:"area" gorm:"size:100;comment:管理地区"`
	Record string `json:"record" gorm:"size:100;comment:出库记录"`
	common.Timestamps
	common.SoftDeletes
}

func NewWaterSourcePersonInCharge(name, gender, phone, area, record string) *WaterSourcePersonInCharge {
	return &WaterSourcePersonInCharge{
		Name:   name,
		Gender: gender,
		Phone:  phone,
		Area:   area,
		Record: record,
	}
}

// 零售部负责人
type RetailPersonInCharge struct {
	common.ID
	Name   string `json:"name" gorm:"size:100;comment:姓名"`
	Gender string `json:"gender " gorm:"size:100;comment:性别"`
	Phone  string `json:"phone" gorm:"size:100;comment:电话号码"`
	Area   string `json:"area" gorm:"size:100;comment:售卖地区"`
	Record string `json:"record" gorm:"size:100;comment:售卖记录"`
	common.Timestamps
	common.SoftDeletes
}

func NewRetailPersonInCharge(name, gender, phone, area, record string) *RetailPersonInCharge {
	return &RetailPersonInCharge{
		Name:   name,
		Gender: gender,
		Phone:  phone,
		Area:   area,
		Record: record,
	}
}
